; (function () {
    // 组件模板中，必须包含有且只有一个根元素
    const template = `<div id="#app">
            <!--头部导航区域-->
            <app-navbar></app-navbar>
        
            <div class="container-fluid">
            <div class="row">
      
                <!--左边菜单栏区域-->
                <app-left></app-left>
                <!-- <app-home></app-home> -->
             
                <keep-alive>
                    <router-view>
                        <h1 slot="dashboard" class="page-header">{{title}}</h1>
                    </router-view>
                </keep-alive>
            </div>
          </div>
    </div>
    `

    window.App = {
        template,
        data() {
            return {
                title: '仪表盘'
            }
        },
        components: {
            AppNavbar,
            AppLeft
        }
    }
})()